package com.bjsxt.mapper;

import com.bjsxt.pojo.Company;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface CompanyMapper {

    //婚庆公司信息查询
    List<Company>  selectMore(Company  company);

    //添加婚庆公司信息
    @Insert("insert into t_company(cpwd,cname,ceo,cphone,cmail) values(#{cpwd},#{cname},#{ceo},#{cphone},#{cmail})")
    Integer   insert(Company company);

    //修改公司信息
    @Update("update t_company  set cpwd=#{cpwd},cname=#{cname},ceo=#{ceo},cphone=#{cphone},cmail=#{cmail} where cid=#{cid}")
    Integer   update(Company company);

}
